from flask_caching import Cache
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
# 配置orm数据库
db = SQLAlchemy()
cache = Cache()
# 配置迁移工具
migrate = Migrate()
def init_ext(app):
    db.init_app(app)
    migrate.init_app(app, db)
    cache.init_app(app=app, config={'CACHE_TYPE': 'simple'})